package com.tfswx.jcyw.dmzc.util;

import com.intellij.openapi.ui.Messages;
import com.intellij.openapi.ui.messages.MessagesService;

/**
 * @author 张述江
 * @date 2023/5/31
 */
public class MessageUtil {

    public static int showErrorDialog(String message, String title) {
        return MessagesService.getInstance().showMessageDialog(null, null, message, title, new String[]{"确定"}, 0, 0, Messages.getErrorIcon(), null, false);
    }
}
